<%@page import="com.nuaa.domain.overseas.BackSupEntity"%>
<%@page import="com.nuaa.domain.overseas.BackupEntity"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%
	String contextPath = request.getContextPath();
	BackupEntity backInfo = (BackupEntity)request.getAttribute("backInfo");
	BackSupEntity backSupInfo = (BackSupEntity)request.getAttribute("backSupInfo");
	String filePath = request.getAttribute("filePath").toString();
%>
<jsp:include page="/WEB-INF/jsp/common/fadeout.jsp"></jsp:include>
<style scoped="scoped">
        .textbox{
            height:20px;
            margin:0;
            padding:0 2px;
            box-sizing:content-box;
        }
    </style>
<style type="text/css">
	table{
		font-size:25;
		font-family:sans-serif;
	}
	table tr td{
		align:left;
	}
</style>
<div id="back_sup" class="easyui-layout" data-options="fit:true">  
<div data-options="region:'center',split:false" style="padding:30px;">
	<table align="center">
		<tr><td colspan="6" style="text-align:center;color:blue;font-weight:bold">订单明细</td></tr>
		<tr>
			<td>订单编号</td>
			<td>&nbsp;<%=backInfo.getOrder_no()%></td>
			<td></td>
			<td></td>
			<td>客户编号</td>
			<td>&nbsp;<%=backInfo.getCustomer_no()%></td>
		</tr>
		<tr>
			<td>订单业务类型</td>
			<td>&nbsp;<%=backInfo.getBusiness_type()%></td>
			<td></td>
			<td></td>
			<td>下单时间</td>
			<td>&nbsp;<%=backInfo.getCreate_tm()%></td>
		</tr>
		<tr>
			<td>订单状态</td>
			<td>&nbsp;
				<%
					int value = backInfo.getState();
				if(value==0)
	    			 out.print("待审核");
				else if(value==1)
	    			 out.print("审核中");
	    		 else if(value==2)
	    			 out.print("收货中");
	    		 else if(value == 3)
	    			 out.print("入库中");
	    		 else if(value==4)
	    			 out.print("入库完成");
	    		 else
	    			 out.print("状态出错");
				%>
			</td>
			</tr>
		<tr>
			<td>每天预估走单量</td><td>&nbsp;<%=backInfo.getTotal_orders()%></td>
			<td></td>
			<td></td>
    		<td><label for="repack">产品平均重量</label></td>  
        	<td>
        		&nbsp;<%=backInfo.getAve_weight()%>	&nbsp;LB
			 </td> 
    	</tr>
		<tr></tr>
		<tr>
			<td>平均尺寸</td>
			<td  colspan="4">&nbsp;长&nbsp; <%=backInfo.getLength()%>
				&nbsp;&nbsp;&nbsp;宽
			     &nbsp;<%=backInfo.getWidth()%>&nbsp;&nbsp;&nbsp;
			       高&nbsp;<%=backInfo.getHeight()%>&nbsp;&nbsp;&nbsp;(单位：CM)</td>
		</tr>
		<tr></tr>
		<tr></tr>
		<tr>
			<td>发货总数量</td><td>&nbsp;<%=backInfo.getTotal_num()%></td>
		<td></td>
			<td></td>
			<td>发货总箱数</td><td>&nbsp;<%=backInfo.getBox_total()%></td>
		</tr>
		<tr>
			<td>货物种类数目</td><td>&nbsp;<%=backInfo.getType_num()%></td>
		</tr>
		<tr><td colspan="6"><hr/></td></tr>
		<tr><td colspan="6" style="text-align:center;color:blue;font-weight:bold">所上传补充文档</td></tr>
		<tr></tr>
		<tr>
			<td>备货发货的物流表</td>
			<td align="center">
				<% if(backSupInfo != null && backSupInfo.getBack_logis_tb()!=null&&!backSupInfo.getBack_logis_tb().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+backSupInfo.getBack_logis_tb()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
			<td></td>
			<td></td>
			<td>备货发货的数量明细表</td>
			<td align="center">
				<% if(backSupInfo != null && backSupInfo.getBack_num_detail_tb()!=null&& !backSupInfo.getBack_num_detail_tb().isEmpty()){
				out.print("<a target='_blank' href='"+filePath+backSupInfo.getBack_num_detail_tb()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
		<tr>
			<td>其它文档资料1</td>
			<td align="center">
				<% if(backSupInfo != null && backSupInfo.getOther_file()!=null&& !backSupInfo.getOther_file().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+backSupInfo.getOther_file()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
			<td></td>
			<td></td>
			<td>其它文档资料2</td>
			<td align="center">
				<% if(backSupInfo != null && backSupInfo.getOther_file2()!=null&& !backSupInfo.getOther_file2().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+backSupInfo.getOther_file2()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
		<tr>
			<td>其它文档资料3</td>
			<td align="center">
				<% if(backSupInfo != null && backSupInfo.getOther_file3()!=null&& !backSupInfo.getOther_file3().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+backSupInfo.getOther_file3()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
			<td></td>
			<td></td>
			<td>其它文档资料4</td>
			<td align="center">
				<% if(backSupInfo != null && backSupInfo.getOther_file4()!=null&& !backSupInfo.getOther_file4().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+backSupInfo.getOther_file4()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
		<tr><td colspan="6"><hr/></td></tr>
		<tr><td colspan="6" style="text-align:center;color:blue;font-weight:bold">管理员上传文档</td></tr>
		<tr>
			<td>收货单号统计表</td>
			<td align="center">
				<% if(backInfo != null && backInfo.getRec_tab_name()!=null&&!backInfo.getRec_tab_name().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+backInfo.getRec_tab_name()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
			<td></td><td></td>
			<td>备货表格模版</td>
			<td align="center">
				<% if(backInfo != null && backInfo.getBack_model_name()!=null&& !backInfo.getBack_model_name().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+backInfo.getBack_model_name()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
		<tr>
			<td>其它文档1</td>
			<td align="center">
				<% if(backInfo != null && backInfo.getOther_file1()!=null&& !backInfo.getOther_file1().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+backInfo.getOther_file1()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
			<td></td>
			<td></td>
			<td>其它文档2</td>
			<td align="center">
				<% if(backInfo != null && backInfo.getOther_file2()!=null&& !backInfo.getOther_file2().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+backInfo.getOther_file2()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
		<tr>
			<td>其它文档3</td>
			<td align="center">
				<% if(backInfo != null && backInfo.getOther_file3()!=null&& !backInfo.getOther_file3().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+backInfo.getOther_file3()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
			<td></td>
			<td></td>
			<td>其它文档4</td>
			<td align="center">
				<% if(backInfo != null && backInfo.getOther_file4()!=null&& !backInfo.getOther_file4().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+backInfo.getOther_file4()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
	</table>
</div>
<!-- 	<div data-options="region:'south',split:false" style="height:60px;background:#95B8E7;text-align:center;padding:10px;"> -->
<!-- 		<a id="back_detail_btn" href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-ok'">关闭</a> -->
<!-- 	</div>  -->
</div>
